package org.dromara.teacher.domain.bo;

import org.dromara.teacher.domain.XjTeacherTaskQuestion;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 教师作业题目业务对象 xj_teacher_task_question
 *
 * @author xjb
 * @date 2024-12-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = XjTeacherTaskQuestion.class, reverseConvertGenerate = false)
public class XjTeacherTaskQuestionBo extends BaseEntity {

    /**
     * 题目id
     */
    @NotBlank(message = "题目id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String questionId;

    /**
     * 题目内容
     */
    @NotBlank(message = "题目内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String questionTxt;

    /**
     * 题目类型
     */
    @NotBlank(message = "题目类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String questionType;

    /**
     * 题目序号
     */
    @NotNull(message = "题目序号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long quesitonOrder;

    /**
     * 关联教师作业表主键id
     */
    @NotBlank(message = "关联教师作业表主键id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskId;


}
